import {requestClient} from '#/api/request';

export async function findDictItemList(params) {
    return requestClient.get('/sys/dict-item/list', {params});
}

export async function findDictItemListPage(params) {
    return requestClient.get('/sys/dict-item/list/page', {params});
}

export async function createDictItemInfo(data) {
    return requestClient.post('/sys/dict-item/create', data)
}

export async function updateDictItemInfo(data) {
    return requestClient.put('/sys/dict-item/update', data)
}

export async function removeDictItemInfo(id) {
    return requestClient.delete('/sys/dict-item/remove', {params: {id}})
}
